package com.example.ioc.normal;

import com.example.ioc.postProcessor.MyBeanPostProcessor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Slf4j
public class MyConfiguration {

    @Bean
    public WildPig wildPig() {
        log.info("----to create WildPig---");
        return new WildPig();
    }

    @Bean
    public MyBeanPostProcessor myBeanPostProcessor() {
        return new MyBeanPostProcessor();
    }
}
